<?php
include_once "RequestInit.php";
include_once "VerifyToken.php";
if(!isset($_REQUEST['entryid']))
{
	header('HTTP/1.1 500 improper call to service');
	exit;
}
$result = Entry::fetchEntry($_SESSION['userId'], $_REQUEST['entryid'], $dbConn);
echo json_encode($result);
include_once "RequestCleanup.php";
?>